<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

	<style>
		html{
			width:100%;
			height:98%;
		}
		body{
			width:99%;
			height:90%;
			background-image: url("img/qq.jpg");
		}
		#tab{
			margin:0px auto;
			margin-top:60px;
		}
		#tile{
			margin: 0px auto;
			margin-top:3%;
			font-size:50px;
			width:100%;
			color: #cc3399;
		}
		#t{
			width:100%;
			padding-top:3%;
			margin:0 auto;
		}
	</style>

</head>
<body>
	<div id="tile"><center> <label>学生名单</label> </center> </div>
	<div id="t">
	<center>
	<table border="1" id="tab">
		<tr>
			<td>考试</td>
			<td>姓名</td>
			<td>成绩</td>
			<td>操作</td>
		</tr>
		<%
		try{
		String[] stu = ((String)request.getAttribute("stu")).split("\u0001");
		if(stu.length<1) return;
		for(int i=0;i<stu.length;i++){
			String[] wap = stu[i].split("\u0002");
			int grade = Integer.parseInt(wap[3]);
		%>
		<tr>
		<td> <label><%=wap[0] %></label> </td>
		<td> <label> <%=wap[2] %> </label> </td>
		<td> <label style="color:RED"> <%=(grade<0 ? "未批改" : grade)%> </label> </td>
		<td style="width:90px;"> <a href= <% out.print("showCorrecting.view?user="+wap[1]); %> >查看试卷</a> </td>
		</tr>
		<%
		
		}}catch(Exception e){}
		%>
		
	</table>
	</center>
	</div>
</body>
</html>